package logger

import "fmt"

const (
	//  ANSI escape codes for coloring text
	Blue   = "\033[34m"
	Green  = "\033[32m"
	Red    = "\033[31m"
	Yellow = "\033[33m"
	Reset  = "\033[0m"
)

// Red logs a message in red color
func LogRed(info string) {
	fmt.Printf("%s%s%s\n", Red, info, Reset)
}

// Blue logs a message in blue color
func LogBlue(info string) {
	fmt.Printf("%s%s%s\n", Blue, info, Reset)
}

// Green logs a message in green color
func LogGreen(info string) {
	fmt.Printf("%s%s%s\n", Green, info, Reset)
}

// Yellow logs a message in yellow color
func LogYellow(info string) {
	fmt.Printf("%s%s%s\n", Yellow, info, Reset)
}

func FormatLogRed(fomat string, a ...any) {
	LogRed(fmt.Sprintf(fomat, a))
}
